package com.hzlx.exception.feign;
import com.hzlx.MesMaintenanceTasksDtO;
import com.hzlx.ResultDto;
import com.hzlx.exception.feign.fallback.EquipmentTaskServiceFallbackFactory;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "equipmentTaskService",
value = "equipment-service",
fallbackFactory = EquipmentTaskServiceFallbackFactory.class)
public interface EquipmentTaskService {
    @PostMapping("/equipment/tasks")
    ResultDto<List<MesMaintenanceTasksDtO>> add(@RequestBody MesMaintenanceTasksDtO mesMaintenanceTasksDto);
}
